package com.example.demotest.service;

import com.example.demotest.model.Student;
import org.springframework.data.domain.Page;

import java.util.List;

public interface StudentService {
    //获取所有学生
    List <Student > getAllStudent() ;

    List<Student> getAllStudents();

    List<Student> getStudents();

    //新增/更新一个学生
    void saveStudent(Student student);

    //获取指定ID的学生
    Student getStudentById(long id);

    //删除指定ID的员工
    void deleteStudentById(long id);

//
    //分页
    Page<Student> fingPaginated(int pageNo, int pageSize, String sortField, String sortDirection);

    Page<Student> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);

    Student findByName(String name);
}
